#pragma once
#include "entity.h"
#include "player.h"
#include "BulletController.h"
#include "StateMachine.h"

class CEnemy :
	public CEntity
{
private:

	CStateMachine<CEnemy>* m_pStateMachine;

protected:
	int width;
	int height;
	
	RECT rect;
	HDC bufDC;
	HBITMAP bufBMP;
	HANDLE hImage;

	int health;

public:
	void Init(HDC);
	CEnemy(void);
	~CEnemy(void);
	virtual void Init(int worldX, int worldY, CPlayer* playerPtr, Tiles* tiles){};

	 virtual void Update(){};
	 virtual void Draw(HDC graphics){};

	//Gebruikt door de meloen
	BulletController* bullets;
	int cooldownTimer;
	bool direction;

	int maxFallDistance;
	bool dead;
	bool pickedUp;
	double x;
	double y;

};
